package com.xomily.devops.agent.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * @version V1.0
 * @ClassName:DevDisc.java
 * @author: xomily (2327742507@qq.com)
 * @date: 2021年12月02日
 * @Description: DevDisc.java
 * @Copyright: 2021-2022 www.xomily.com. All rights reserved.
 */
public class DevDisc extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 主机IP地址 */
    private String ip;

    /** 文件系统 */
    private String name;

    /** 大小 */
    private BigDecimal size;

    /** 已用 */
    private BigDecimal used;

    /** 可用 */
    private BigDecimal avail;

    /** 使用率 */
    private BigDecimal useRate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSize(BigDecimal size) 
    {
        this.size = size;
    }

    public BigDecimal getSize() 
    {
        return size;
    }
    public void setUsed(BigDecimal used) 
    {
        this.used = used;
    }

    public BigDecimal getUsed() 
    {
        return used;
    }
    public void setAvail(BigDecimal avail) 
    {
        this.avail = avail;
    }

    public BigDecimal getAvail() 
    {
        return avail;
    }
    public void setUseRate(BigDecimal useRate) 
    {
        this.useRate = useRate;
    }

    public BigDecimal getUseRate() 
    {
        return useRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("fileSystem", getName())
            .append("size", getSize())
            .append("used", getUsed())
            .append("avail", getAvail())
            .append("useRate", getUseRate())
            .append("createTime", getCreateTime())
            .toString();
    }
}
